﻿<?php

class AdminController extends App_Controller_Base
{
	public function init()
	{
		parent::init();
		if($this->_user->info['position_id'] != ADMIN_ID){
			$this->_redirect(HTTP_HOST);
		}
	}
	
	public function indexAction()
	{
		$user = new App_Db_User();
		$users = $user->getAllUsers()->toArray();
		$this->view->assign('users',$users);
	}
	
	public function addAction()
	{
	
	}
	
	public function editAction()
	{
	
	}
	
	public function deleteAction()
	{
	
	}
}


?>